package com.un.ebs.product.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author liubo
 * @email liubocs@163.com
 * @date 2020/5/7 10:29
 */
@Data
public class ProductClassTimeAddDto implements Serializable {

    @Max(value = 23, message = "最大时刻只能是23点")
    @Min(value = 0, message = "最小时刻只能是0点")
    private Integer startHour;

    @Max(value = 59, message = "最大分钟数只能是59分")
    @Min(value = 0, message = "最小分钟数只能是0分")
    private Integer startMinute;

    @Max(value = 23, message = "最大时刻只能是23点")
    @Min(value = 0, message = "最小时刻只能是0点")
    private Integer endHour;

    @Max(value = 59, message = "最大分钟数只能是59分")
    @Min(value = 0, message = "最小分钟数只能是0分")
    private Integer endMinute;

    @NotNull(message = "类别ID不能为空。")
    private String classId;
}
